import QtQuick
import QtQuick.Controls.Material 2.15
import QtQuick.Particles 2.15

import "./MyLib.js" as MyLib

Window {
    id: myWindow
    width: 1200
    height: 700
    visible: true
    title: "مەرھابا دۇنيا"
//    font.family: "Ukij CJK"
    property int myCounter: 23
    property string myName: ""
    color: "black"


    MyRect {
        onCopy: {
            console.log("Copy")
        }
    }

    Rectangle {
        anchors.fill: parent
        color: "transparent"

        ParticleSystem {
            id: particleSystem
        }
        ImageParticle {
            system: particleSystem
            source: "/assets/particle.png"
            color: "red"
        }

        Emitter {
            width: 200
            height: 200
            system: particleSystem
            anchors.centerIn: parent
            emitRate: 20
            lifeSpan: 2000
            lifeSpanVariation: 5000
            size: 5
            endSize: 20
            velocity: AngleDirection {
                angle: 90
                angleVariation: 15
                magnitude: 100
                magnitudeVariation: 50
            }
        }

        MainUI {}
    }
}
